Hi all, |
Re: External Link Exists Method look at DXL Help, chapter "ExternalLink" I think you can find solutions. Pierre |
Re: External Link Exists Method PDU - Thu Apr 08 09:25:57 EDT 2010 thanks for your hint. Looking to the help was my first idea but i couldn´t find any solution for that. |
Re: External Link Exists Method PDU - Thu Apr 08 09:25:57 EDT 2010 thanks for the hint but there is no solution for the problem given in the help. |
Re: External Link Exists Method EA2412 - Thu Apr 08 09:41:42 EDT 2010
Hi,
/*
This attribute DXL was generated on 08/04/10 16:08:17.
*/
// prevent dxl timeout dialog
pragma runLim, 0
Buffer bsz = create
void endAttributeDXL()
{
if (!null obj && attrDXLName != "")
{
obj.attrDXLName = richText tempStringOf(bsz)
}
delete bsz
}
void display(string s)
{
bsz += s
bsz += "\n"
}
void displayRich(string s)
{
bsz += s
bsz += "\n"
}
//**********
// DXL generated by DOORS traceability wizard on 08 April 2010.
// Wizard version 2.0, DOORS version 9.1.0.2
pragma runLim, 0
void showOut(Object o, int depth) {
Link l
LinkRef lr
ModName_ otherMod = null
Module linkMod = null
ModuleVersion otherVersion = null
Object othero
string disp = null
string s = null
string plain, plainDisp
int plainTextLen
int count
bool doneOne = false
if (depth == 1) {
ExternalLink extLink
doneOne = false
for extLink in o->"" do {
s = richText name(extLink)
if (s == "")
displayRich("\\pard " " ")
else
displayRich("\\pard " s)
}
}
}
showOut(obj,1)
//**********
endAttributeDXL()
|
Re: External Link Exists Method PDU - Thu Apr 08 10:16:12 EDT 2010
Hi,
/*
This attribute DXL was generated on 08/04/10 16:08:17.
*/
// prevent dxl timeout dialog
pragma runLim, 0
Buffer bsz = create
void endAttributeDXL()
{
if (!null obj && attrDXLName != "")
{
obj.attrDXLName = richText tempStringOf(bsz)
}
delete bsz
}
void display(string s)
{
bsz += s
bsz += "\n"
}
void displayRich(string s)
{
bsz += s
bsz += "\n"
}
//**********
// DXL generated by DOORS traceability wizard on 08 April 2010.
// Wizard version 2.0, DOORS version 9.1.0.2
pragma runLim, 0
void showOut(Object o, int depth) {
Link l
LinkRef lr
ModName_ otherMod = null
Module linkMod = null
ModuleVersion otherVersion = null
Object othero
string disp = null
string s = null
string plain, plainDisp
int plainTextLen
int count
bool doneOne = false
if (depth == 1) {
ExternalLink extLink
doneOne = false
for extLink in o->"" do {
s = richText name(extLink)
if (s == "")
displayRich("\\pard " " ")
else
displayRich("\\pard " s)
}
}
}
showOut(obj,1)
//**********
endAttributeDXL()
I was looking for how to check whether the current object have external links.i had found this soultion. May i know what does the integer value depth means in the above script. Thank you! Regards, Shruthi |
Re: External Link Exists Method Bosch - Sat Sep 24 03:21:38 EDT 2011 The code you see is built for a depth 1 analysis (the standard), but the wizard generation code still uses the multi-depth code which it really doesn't need in this case. Notice the function is called with depth=1 .. showOut(obj,1) so its as if it doesn't exist
|